﻿using System.ComponentModel;
using ttg_internal.Utilities.UsageVisualizer.View;
using ttg_internal.utils;

namespace ttg_internal.Utilities.UsageVisualizer.ViewModel
{
    /// <summary>
    /// Model for <see cref="GlobalUsageTabView" />
    /// </summary>
    internal class GlobalUsageTabViewModel : UsageTabViewModel
    {
        /// <summary>
        /// Initializes a new instance visualizing basic info from the specified global information
        /// </summary>
        public GlobalUsageTabViewModel(GlobalInfo globalInfo)
        {
            _globalInfo = globalInfo;
            Title = "Summary";
        }

        // Private fields
        private readonly GlobalInfo _globalInfo;

        /// <summary>
        /// List of all devices
        /// </summary>
        public IBindingList Devices
        {
            get { return _globalInfo.Devices; }
        }
    }
}
